#!/usr/bin/env python
#coding: utf-8

import threading
import time
# def Func(i):
# 	print i
# 	time.sleep(1)
# 	for item in range(10):
# 		print i,item
# 进程锁
#     lock.acquire()   开始
#       lock.release()   释放
# # t = threading.Thread(target=Func,args=(1,))
# t.start()
# t.join()
# t2 = threading.Thread(target=Func,args=(2,))
# t2.start()
# t2.join()
def Func(i):
	print i

class MyThread(threading.Thread):
	def run(self):
		print 'my ------>S'
		threading.Thread.run(self)

t1 = MyThread(target=Func,args=(1,))
t1.start()